<?php
//序列化   将数组序列化为字符串
$database = require 'config/databases.php';
//序列化
$ser = serialize($database);
//反序列化
$unser = unserialize($ser);
print_r($unser);